package com.heima.model.wemedia.dtos;

import lombok.Data;

import java.util.Date;

@Data
public class WmFindNewsCommentsDto {

    //开始时间
    private String beginDate;
    //结束时间
    private String endDate;
    //当前页
    private Integer page;
    //每页显示条数
    private Integer size;

    public void checkParam() {
        if (this.page == null || this.page <= 0) {
            setPage(1);
        }
        if (this.size == null || this.size <= 0 || this.size > 100) {
            setSize(10);
        }
    }
}
